package com.sykj.cloud.activity.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sykj.cloud.common.core.annotation.Excel;
import com.sykj.cloud.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 活动订单记录对象 activity_order
 *
 * @author mr.will
 * @date 2021-04-01
 */
public class ActivityOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private String guid;

    /** 活动ID */
    @Excel(name = "活动ID")
    private String activityId;

    /** 场次ID */
    @Excel(name = "场次ID")
    private String sessionId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 订单序列号 */
    @Excel(name = "订单序列号")
    private String serialNum;

    /** 使用凭证码 */
    @Excel(name = "使用凭证码")
    private Integer certCode;

    /** 订票人姓名 */
    @Excel(name = "订票人姓名")
    private String memberName;

    /** 订票电话 */
    @Excel(name = "订票电话")
    private String memberPhone;

    /** 订票数量 */
    @Excel(name = "订票数量")
    private Long bookingCount;

    /** 订票人ID */
    @Excel(name = "订票人ID")
    private String memberId;

    /** 订单取消时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cacelTime;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private String totalPrice;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private Integer approvedStatus;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approvedUserId;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approvedExplain;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvedTime;

    /** 是否要审批 */
    @Excel(name = "是否要审批")
    private Integer needApprove;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Integer valid;

    /** 是否已删除 */
    @Excel(name = "是否已删除")
    private Integer deleted;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }
    public void setActivityId(String activityId)
    {
        this.activityId = activityId;
    }

    public String getActivityId()
    {
        return activityId;
    }
    public void setSessionId(String sessionId)
    {
        this.sessionId = sessionId;
    }

    public String getSessionId()
    {
        return sessionId;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }
    public void setSerialNum(String serialNum)
    {
        this.serialNum = serialNum;
    }

    public String getSerialNum()
    {
        return serialNum;
    }
    public void setCertCode(Integer certCode)
    {
        this.certCode = certCode;
    }

    public Integer getCertCode()
    {
        return certCode;
    }
    public void setMemberName(String memberName)
    {
        this.memberName = memberName;
    }

    public String getMemberName()
    {
        return memberName;
    }
    public void setMemberPhone(String memberPhone)
    {
        this.memberPhone = memberPhone;
    }

    public String getMemberPhone()
    {
        return memberPhone;
    }
    public void setBookingCount(Long bookingCount)
    {
        this.bookingCount = bookingCount;
    }

    public Long getBookingCount()
    {
        return bookingCount;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setCacelTime(Date cacelTime)
    {
        this.cacelTime = cacelTime;
    }

    public Date getCacelTime()
    {
        return cacelTime;
    }
    public void setTotalPrice(String totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public String getTotalPrice()
    {
        return totalPrice;
    }
    public void setApprovedStatus(Integer approvedStatus)
    {
        this.approvedStatus = approvedStatus;
    }

    public Integer getApprovedStatus()
    {
        return approvedStatus;
    }
    public void setApprovedUserId(String approvedUserId)
    {
        this.approvedUserId = approvedUserId;
    }

    public String getApprovedUserId()
    {
        return approvedUserId;
    }
    public void setApprovedExplain(String approvedExplain)
    {
        this.approvedExplain = approvedExplain;
    }

    public String getApprovedExplain()
    {
        return approvedExplain;
    }
    public void setApprovedTime(Date approvedTime)
    {
        this.approvedTime = approvedTime;
    }

    public Date getApprovedTime()
    {
        return approvedTime;
    }
    public void setNeedApprove(Integer needApprove)
    {
        this.needApprove = needApprove;
    }

    public Integer getNeedApprove()
    {
        return needApprove;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("activityId", getActivityId())
            .append("sessionId", getSessionId())
            .append("orderStatus", getOrderStatus())
            .append("serialNum", getSerialNum())
            .append("certCode", getCertCode())
            .append("memberName", getMemberName())
            .append("memberPhone", getMemberPhone())
            .append("bookingCount", getBookingCount())
            .append("memberId", getMemberId())
            .append("cacelTime", getCacelTime())
            .append("totalPrice", getTotalPrice())
            .append("approvedStatus", getApprovedStatus())
            .append("approvedUserId", getApprovedUserId())
            .append("approvedExplain", getApprovedExplain())
            .append("approvedTime", getApprovedTime())
            .append("needApprove", getNeedApprove())
            .append("valid", getValid())
            .append("deleted", getDeleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
